package com.fcscs.ecms.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.fcscs.core.dao.Dao;
import com.fcscs.cservice.domain.Restaurant;
import com.fcscs.cservice.domain.model.RestaurantView;

@Repository
public interface ECMSRestaurantDao extends Dao {
	
	Restaurant getRestaurant(long id);
	
	List<Restaurant> getRestaurantList(long orgId, long propId, boolean isCurrent); //isCurrent true: current; false: scheduled

	List<Restaurant> getRestaurantList(long orgId, long propId, long versionId); //get specified version data

	List<Restaurant> saveRestaurantList(List<Restaurant> restList); //used to save display order

	Restaurant createRestaurant(Restaurant rest);

	Restaurant saveRestaurant(Restaurant rest);
	
	boolean deleteRestaurant(Restaurant rest);

	boolean permDeleteRestaurant(Restaurant rest);
	
	boolean isRestaurantTaken(long orgId, long propId, String name, Long id, long versionId);

	List<RestaurantView> getRestaurantViewList(long orgId, long propId); //used by web service, get current version
}
